package com.design.pattern.ChainResponsibility;

/**
 * @Projectname: Design-pattern
 * @Filename: Origin
 * @Author: FANSEA
 * @Date:2024/11/7 22:26
 */
public class Origin {
    public static void main(String[] args) {
        Handler<String> handlerA = new HandleA();
        Handler<String> handlerB = new HandleB();
        Handler<String> handlerC = new HandleC();
        handlerA.setNext(handlerB);
        handlerB.setNext(handlerC);
        handlerA.handle("C");
    }
}
